package io.renren.modules.lanling.service.impl;

import org.springframework.stereotype.Service;

import java.util.Map;

import com.baomidou.mybatisplus.mapper.EntityWrapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import io.renren.common.utils.PageUtils;
import io.renren.common.utils.Query;

import io.renren.modules.lanling.dao.SignUpSubjectDao;
import io.renren.modules.lanling.entity.SignUpSubjectEntity;
import io.renren.modules.lanling.service.SignUpSubjectService;


@Service("signUpSubjectService")
public class SignUpSubjectServiceImpl extends ServiceImpl<SignUpSubjectDao, SignUpSubjectEntity> implements SignUpSubjectService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {

        Page<SignUpSubjectEntity> page = this.selectPage(
                new Query<SignUpSubjectEntity>(params).getPage(),
                new EntityWrapper<SignUpSubjectEntity>().eq("create_user_id", params.get("createUserId"))
        );

        return new PageUtils(page);
    }

}
